package com.ddwl.schema.bo.goods;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(description = "商品专题bo")
public class ItemTopicBo {

    @NotBlank(message = "专题id不能为null")
    @ApiModelProperty("专题id")
    private String topicId;

    @NotNull(message = "商品id列表不能为null")
    @ApiModelProperty("商品id列表")
    private List<ItemSort> itemList;

    @Data
    public class ItemSort{

        @ApiModelProperty("商品id")
        private String itemId;
        @ApiModelProperty("商品排序")
        private Integer itemSort;

    }
}
